﻿@using BruceCore.Entity
@{
    int rowno = 0;
}
@model IEnumerable<SysRole>

<table class="table table-bordered table-hover">
    <thead>
        <tr>
            <th class="footable-visible footable-sortable">序号</th>
            <th class="footable-visible footable-sortable">角色ID</th>
            <th class="footable-visible footable-sortable">角色名</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            rowno++;
            <tr class="@(rowno % 2 == 0 ? "footable-odd" : "footable-even")" style="display: table-row;">
                <td class="footable-visible">@rowno</td>
                <td class="footable-visible">@item.ID</td>
                <td class="footable-visible">@item.RoleName</td>
            </tr>
        }
    </tbody>
    <tfoot>
        <tr>
            <td colspan="15">
                @Html.RenderPartialAsync("_Paging", Model)
            </td>
        </tr>
    </tfoot>
</table>
